package com.wis;

import com.wis.offline.OfflineTools;
import com.wis.offline.ReadSrcFile;

import java.util.Properties;

/**
 * @Description: traffic_wis
 * @author: fan
 * @Date: Created in 2019/10/21 16:24
 * @Modified By:
 */
public class Main {
    public static String configFileName = "offline.properties";

    public static void main(String[] args) {
        long time1 = System.currentTimeMillis();
        Properties properties = OfflineTools.getProperties(configFileName);
        OfflineTools.initMatchInfo(properties);
        ReadSrcFile readSrcFile = new ReadSrcFile();
        readSrcFile.checkNewFile(properties, properties.getProperty("two.input.path"), properties.getProperty("tro.output.path"));
        readSrcFile.checkNewFile(properties, properties.getProperty("twn.input.path"), properties.getProperty("trn.output.path"));
        readSrcFile.checkNewFile(properties, properties.getProperty("twp.input.path"), properties.getProperty("trp.output.path"));
        long time2 = System.currentTimeMillis();
        System.out.println("处理数据用时："+(time2 - time1) / 1000.0+" 秒");
        System.exit(1);
    }
}